#!/bin/bash
MESSAGES="./messages"
SOCKETS="./SocketsAndThreads"
SERVER="./Servidor"
nombre_ejecutable="server"
UTILS="./Utils"

if [ ! -d ./bin_server ]
then
	mkdir ./bin_server
fi
cp ./monitor.jpg ./bin_server/monitor.jpg
g++ -o ./bin_server/monitor Monitor/*.cpp Utils/*.cpp -lpthread -llog4cpp `pkg-config gtkmm-3.0 --cflags --libs` `pkg-config --cflags --libs pangomm-1.4`
g++ -o ./bin_server/server Servidor/*.cpp  messages/*.h SocketsAndThreads/*.cpp Utils/*.cpp -lpthread -llog4cpp `pkg-config gtkmm-3.0 --cflags --libs`

